package com.ruoyi.media.publishRecord.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.media.publishRecord.domain.MediaPublishRecord;
import com.ruoyi.media.publishRecord.domain.vo.MediaPublishRecordVo;
import com.ruoyi.media.publishRecord.domain.bo.MediaPublishRecordBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 视频号发布记录Service接口
 *
 * @author dqw
 * @date 2023-05-14
 */
public interface IMediaPublishRecordService extends IService<MediaPublishRecord> {

    /**
     * 查询视频号发布记录
     */
    MediaPublishRecordVo queryById(Long id);

    /**
     * 查询视频号发布记录列表
     */
    TableDataInfo<MediaPublishRecordVo> queryPageList(MediaPublishRecordBo bo, PageQuery pageQuery);

    /**
     * 查询视频号发布记录列表
     */
    List<MediaPublishRecordVo> queryList(MediaPublishRecordBo bo);

    /**
     * 新增视频号发布记录
     */
    Boolean insertByBo(MediaPublishRecordBo bo);

    /**
     * 修改视频号发布记录
     */
    Boolean updateByBo(MediaPublishRecordBo bo);

    /**
     * 校验并批量删除视频号发布记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);


    /**
     * 获取未发布账号的一条记录
     * @return
     */
    MediaPublishRecordVo getAccountPublishData(String userId);

}
